﻿using System;
using System.ComponentModel;
using System.Runtime.Serialization;

namespace ITSP.SharePoint.CacheRefresh.Examples.Configuration
{
    /// <summary>
    /// Object which holds an Example Configuration
    /// </summary>
    [DataContract(Name = "ExampleConfiguration", Namespace = "http://schemas.ithinksharepoint.com/cacherefresh")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace = "ithinksharepoint.com:cacherefresh")]
    [System.Xml.Serialization.XmlRootAttribute("ExampleConfiguration", IsNullable = false)]
    [Serializable]
    public class ExampleConfiguration
    {
        public ExampleConfiguration()
        {

        }

        [DefaultValue("An Example Value")]
        [DataMember(EmitDefaultValue = true)]
        public string ExampleConfigurationName { get; set; }

        [DefaultValue(1)]
        [DataMember(EmitDefaultValue = true)]
        public int ExampleConfigurationValue { get; set; }

        [DataMember(EmitDefaultValue = true)]
        public DateTime ExampleConfigurationStartDate { get; set; }

        [DataMember]
        public DateTime Modified { get; set; }

        [DataMember]
        public DateTime Created { get; set; }
    }
}
